import * as fetch from 'common/fetch.js';

//视频列表
export function videoList({ page, videoType }){
	return fetch.get("/vote/app/vote/videoList",{"page":page,"videoType":videoType});
}

//获取视频详情
export function videoDetail({ videoId }){
	return fetch.get("/vote/app/vote/videoDetail",{"videoId":videoId});
}

//获取验证码
export function verificationCode(){
	return fetch.get("/vote/app/sys/verificationCode");
}

//投票
export function voteVideo({code, token, videoId}){
	return fetch.get("/vote/app/vote/voteVideo",{"code":code, "token":token, "videoId":videoId});
}